#include <PA9.h>
#include "graphic.h"
#include "sprite.h"


#ifndef __SpriteText_h__
#define __SpriteText_h__

namespace game{
    class SpriteText{
        private:
            bool screen;
            void* character_pal;
            void* character_sprite;
            u8 objShape;
            u8 objSize;
            
            Sprite** char_spr;
            Graphic* char_gfx;
            Palette* char_pal;
            u8 maxFrames;
            u8 characterOffset;
            u8 characterSpacing;
            u8 textSize;
            u8 orig_x;
            u8 orig_y;
        public:
            SpriteText(bool screen, void* character_pal, void* character_sprite, u8 objShape, u8 objSize, u8 maxFrames, u8 characterOffset);
            ~SpriteText();
            
            void load(char* text, u8 size, u8 characterSpacing);
            
            void settext(char* text);
            
            // location
            void setxy(s16 x, s16 y);
            s16 getx();
            void setx(s16 x);
            s16 gety();
            void sety(s16 y);
            
            void setxy(u8 chr, s16 x, s16 y);
            s16 getx(u8 chr);
            void setx(u8 chr, s16 x);
            s16 gety(u8 chr);
            void sety(u8 chr, s16 y);
    };
}

#endif
